package com.loyal.loyalerp.utils;

import java.io.IOException;
import java.util.Properties;

import org.springframework.core.io.support.PropertiesLoaderUtils;

public class PropertiesUtil {

	public static String getValue(String key) {
		try {
			Properties pro = PropertiesLoaderUtils.loadAllProperties("application.properties");
			return pro.getProperty(key);
		} catch (IOException e) {
			e.printStackTrace();
			return null;
		}
	}
}
